package com.qf.service.impl;

import com.qf.dao.BookDao;
import com.qf.dao.impl.BookDaoImpl;
import com.qf.entity.Book;
import com.qf.entity.Page;
import com.qf.service.BookService;

import java.util.List;

public class BookServiceImpl implements BookService {
    private BookDao bookDao = new BookDaoImpl();
    public List<Book> getAll() {
        return bookDao.selectAll();
    }

    @Override
    public List<Book> findAllPage(Page page) {
        return bookDao.selectAllByPage(page);
    }

    @Override
    public int findAllPageCount() {
        return bookDao.selectAllByPageCount();
    }

    //
}
